<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../base.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<script type="text/javascript" src="${ctx }/js/datepicker/WdatePicker.js"></script>
</head>

<body>
<form name="icform" method="post">
	<input type="hidden" name="id" value="${id}"/>
	<div id="menubar">
		<div id="middleMenubar">
			<div id="innerMenubar">
				<div id="navMenubar">
					<ul>
						<li id="save"><a href="#" onclick="formSubmit('packingListAction_insert','_self');this.blur();">保存</a></li>
						<li id="back"><a href="#" onclick="history.go(-1);">返回</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div class="textbox-title">
		<img src="../../staticfile/skin/default/images/icon/currency_yen.png"/>
		新增装箱单
	</div>
	<div>
		<table class="commonTable" cellspacing="1">
			<tr>
				<td class="columnTitle">卖方：</td>
				<td class="tableContent"><input type="text" name="seller" value="${seller}"/></td>
			</tr>
			<tr>
				<td class="columnTitle">买方：</td>
				<td class="tableContent"><input type="text" name="buyer" value="${buyer}"/></td>
			</tr>

			<tr>
				<td class="columnTitle">录入号：</td>
				<td class="tableContent">
					<input type="text" name="invoiceNo" value="${invoiceNo}"/>
				</td>
			</tr>
			<tr>
				<td class="columnTitle">录入日期：</td>
				<td class="tableContent">
					<input type="text" style="width:90px;" name="invoiceDate"
						   value="${invoiceDate}"
						   onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
				</td>
			</tr>
			<tr>
				<td class="columnTitle">唛头：</td>
				<td class="tableContent"><input type="text" name="marks" value="${marks}"/></td>
			</tr>
			<tr>
				<td class="columnTitle">描述：</td>
				<td class="tableContent"><input type="text" name="descriptions" value="${descriptions}"/></td>
			</tr>
		</table>
	</div>


	<div class="eXtremeTable" >
		<table id="ec_table" class="tableRegion" width="98%" >
			<thead>
			<tr>
				<td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
				<td class="tableHeader">序号</td>
				<td class="tableHeader">合同号</td>
				<td class="tableHeader">信用号</td>
				<td class="tableHeader">收货人信息</td>
				<td class="tableHeader">装运港</td>
				<td class="tableHeader">目的港</td>
				<td class="tableHeader">唛头</td>
			</tr>
			</thead>
			<tbody class="tableBody" >
			<c:forEach items="${exportList}" var="o" varStatus="status">
				<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
                    <td><input type="checkbox" name="exportIds" value="${o.id}" <c:if test="${fn:contains(exportIds,o.id)}">checked</c:if> /></td>
					<td><input type="hidden" name="exportNos" value="${o.lcno}"/></td>
					<td>${status.index+1}</td>
					<td>${o.contractIds}</td>
					<td>${o.lcno}</td>
					<td>${o.consignee}</td>
					<td>${o.shipmentPort}</td>
					<td>${o.destinationPort}</td>
					<td>${o.marks}</td>
				</tr>
			</c:forEach>

			</tbody>
		</table>
	</div>


</form>
</body>
</html>



